import IAreaPageForm from '@/model/form/area/IAreaPageForm'
import IAreaVO from '@/model/vo/area/IAreaVO'
import IResVO from '@/model/vo/common/IResVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 查询区域（树结构）
export default function areaTreeApi(form: IAreaPageForm) {
  return $http.post<IResVO, AxiosResponse<IResVO<IAreaVO[]>>>(
    '/area/tree',
    form
  )
}
